package com.ygqh.baby.po;

import com.ygqh.baby.ao.DataStatus;

import java.util.Date;
import java.util.List;

public class YgAttribute {

	private Long id;

	private String attributeName;

	private Long parentId;

	private Integer level;

	private Integer sortNum;

	private Date createTime;

	private String createBy;

	private Date updateTime;

	private String updateBy;

	private DataStatus status;

	/*-------------------------------*/
	private List<YgAttribute> children;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAttributeName() {
		return attributeName;
	}

	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName == null ? null : attributeName.trim();
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy == null ? null : createBy.trim();
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy == null ? null : updateBy.trim();
	}

	public DataStatus getStatus() {
		return status;
	}

	public void setStatus(DataStatus status) {
		this.status = status;
	}

	public List<YgAttribute> getChildren() {
		return children;
	}

	public void setChildren(List<YgAttribute> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "YgAttribute [id=" + id + ", attributeName=" + attributeName + ", parentId=" + parentId + ", level=" + level + ", sortNum=" + sortNum
				+ ", createTime=" + createTime + ", createBy=" + createBy + ", updateTime=" + updateTime + ", updateBy=" + updateBy + ", status=" + status
				+ "]";
	}

}